﻿using System;
using System.Collections.Generic;

namespace AutomaticScrewLocking.domain.torque.dataStorage.service
{
    /// <summary>
    /// 数据存储服务接口
    /// </summary>
    public interface DataStorageService
    {
        /// <summary>
        /// 存储最大扭力数据
        /// </summary>
        /// <param name="maxTorque"></param>
        /// <returns></returns>
        bool SaveMaxTorqueData(double maxTorque,out string errorMsg);

        /// <summary>
        /// 根据时间获取历史扭力数据
        /// </summary>
        /// <param name="startTime">开始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <returns></returns>
        List<double> getHistoryTorqueListByTime(DateTime startTime, DateTime endTime);
    }
}
